package pl.myapp.webtest.events.listener;

import org.slf4j.Logger;
import pl.myapp.webtest.config.qualifier.MyLogger;
import pl.myapp.webtest.events.qualifier.WhiteCoffee;
import pl.myapp.webtest.events.stuff.CupOfCoffee;

import javax.enterprise.event.Observes;
import javax.inject.Inject;

/**
 * Created by IntelliJ IDEA.
 * User: kaafaar
 * Date: 16.05.11
 * Time: 22:16
 * To change this template use File | Settings | File Templates.
 */
public class CoffeeListener {
    @Inject
	@MyLogger
    Logger logger;

    public void emptyCupOfCoffee(@Observes @WhiteCoffee CupOfCoffee cupOfCoffee) {
        logger.info("F I R E ! ! ! ! ! "+cupOfCoffee.toString());
    }
}
